<?php

declare(strict_types=1);

namespace App\Ai\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $chat_id
 * @property string $user_id
 * @property string $role
 * @property int $type 0文本1文件
 * @property string $content
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 */
class AiAccountChat extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ai_account_chat';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'chat_id', 'user_id', 'role', 'type', 'content', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'chat_id' => 'integer', 'type' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
